import Vue from "vue";

import ElementUI from "element-ui";
import "./styles/element-variables.scss";

import * as echarts from "echarts";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import customFn from "./utils/public";

import * as filters from "./filters";

Vue.use(ElementUI);
Vue.use(customFn);
Vue.prototype.$echarts = echarts

Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount("#app");
